def isPalindrome(str: String): Boolean = {
  val long = str.length
  val hlef_long = long / 2
  for (i <- 0 until hlef_long) {
    if (str(i) != str(long - i - 1)) {
      return false
    }
  }
  true
}

